package com.show.business.device.bean;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.show.business.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 设备报警
 * </p>
 *
 * @author dvlp
 * @since 2024-09-29
 */
@Getter
@Setter
@TableName("t_device_alarm")
@ApiModel(value = "DeviceAlarm对象", description = "设备报警")
public class DeviceAlarm extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("设备编码")
    private String deviceCode;

    @ApiModelProperty("设备分组")
    private String groupId;

    @ApiModelProperty("设备IMEI码")
    private String imei;

    @ApiModelProperty("告警线路标识：(0：主线；1：1号子线；2：2号子线；3：3号子线；4：4号子线；5：设备通信状态)")
    private String alarmLine;

    @ApiModelProperty("告警线路(主线；1号子线；2号子线；3号子线；4号子线；设备通信状态)")
    private String line;

    /**告警类型（If alarmLine <=4:(1:来电、0:断电/缺相);If type==alarmLine:(1:在线、0:断线)）；State=0时，检测220V为断电，检测380V为缺相")
     * 0-断电告警；1-缺相告警；2-断电/缺相恢复；3-设备通信异常告警
     * */
    @ApiModelProperty("告警类型（0-断电；1-缺相；2:断电/缺相恢复告警;3-设备断线；4-设备在线)")
    private String alarmType;

    @ApiModelProperty("告警-路段id")
    private String roadSectionId;

    @ApiModelProperty("告警-路段")
    private String roadSection;

    @ApiModelProperty("告警-场地id")
    private String siteId;

    @ApiModelProperty("告警-场地")
    private String site;

    @ApiModelProperty("告警-位置id")
    private String locationId;

    @ApiModelProperty("告警-位置")
    private String location;

    @ApiModelProperty("告警时间")
    private String alarmTime;

    @ApiModelProperty("告警描述")
    private String bz;

    @ApiModelProperty("删除标识, 0存在，1删除")
    private String delFlag;
}
